/**
 * 
 */
package org.statewalker.parser.turtle.tokenizer;

import org.statewalker.tokenizer.StreamToken;

public class WSToken extends StreamToken {

    private StreamToken fFirst;

    private StreamToken fLast;

    public WSToken(String wsKey) {
        super(wsKey, true, true, null, null, null);
    }

    public void appendToken(StreamToken token) {
        if (fFirst == null) {
            fFirst = token;
            fLast = token;
        } else {
            fLast.insertAfter(token);
            fLast = token;
        }
    }

    public StreamToken getFirst() {
        return fFirst;
    }

    public StreamToken getLast() {
        return fLast;
    }
}